package com.archie.xunji.huodong.entity;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created
 * Author:bi[FR]
 * Date:15-11-11
 */
public class HotAndNewData {


    /**
     * username : 袁腾飞
     * storycount : 381
     * description : 进入21世。
     * name : 【独家】袁腾飞循迹：中国古战场的烟火风云
     * state : true
     * createdate : 1440345600000
     * userinfoid : 1
     * pv : 4965
     * type : 1
     * subjectid : 235
     * storyid : 1767
     * creator : 23
     */

//    private String username;
//    private int storycount;
//    private String description;
   private String name;
//    private boolean state;
//    private long createdate;
//    private int userinfoid;
    private int pv;
//    private int type;
//    private int subjectid;
//    private int storyid;
//    private int creator;

    public void parseJSON(JSONObject json) throws JSONException {
       // username=json.optString("username");
       // storycount=json.getInt("storycount");
      //  description=json.getString("description");
        name=json.getString("name");
     //   state=json.getBoolean("state");
     //   createdate=json.getLong("createdate");
     //   userinfoid=json.optInt("userinfoid");
        pv=json.getInt("pv");
     //   type=json.optInt("type");
     //   subjectid=json.optInt("subjectid");
    //    storyid=json.optInt("storyid");
     //   creator=json.optInt("creator");
    }

    @Override
    public String toString() {
        return "HotAndNewData{" +
                "name='" + name + '\'' +
                ", pv=" + pv +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPv() {
        return pv;
    }

    public void setPv(int pv) {
        this.pv = pv;
    }
}
